package com.javabasic.analyze_source_code;

import java.util.ArrayList;

/**
 * @Author xiongmin
 * @Description TODO
 * @Date 2019/10/22 17:23
 * @Version 1.0
 **/
public class ArrayListTest {

    public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        int len = 20;
        arrayList.add(len);
        for (int i = 0; i < len; i++) {
            int element = (int) Math.round(1) * 100;
            if (i == 9) {
                System.out.println("第10条数据");
                arrayList.add(element);
            } else {
                arrayList.add(element);
            }

        }

    }
}

